package org.面试题.factoryMethods.order;


import org.面试题.factoryMethods.Pizza.BeijingCheesePizza;
import org.面试题.factoryMethods.Pizza.LunDunCheesePizza;
import org.面试题.factoryMethods.Pizza.LunDunPepperPizza;
import org.面试题.factoryMethods.Pizza.Pizza;


public class LunDunOrderPizza extends OrderPizza{
    @Override
    Pizza createType(String orderType) {
        Pizza pizza = null;
        if (orderType.equals("cheese")){
             pizza = new LunDunCheesePizza();
        }else if (orderType.equals("pepper")){
            pizza = new LunDunPepperPizza();
        }

        return pizza;
    }
}
